package com.codeduck.properties.byAnnotation;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @auther Mahone Yan
 * @date 2023/5/5
 */
@Component
@PropertySource(value = {"classpath:META-INF/redis.properties"})
public class RedisProperties {

    @Value("${redis.bootstrap.servers}")
    private String server;

    public String getServer() {
        return server;
    }

    public void setServer(String server) {
        this.server = server;
    }
}
